package graph.filters;

import org.eclipse.jdt.core.dom.ASTNode;

public class ASTNodeTypeFilter implements IFilter<Integer, ASTNode> {
	private Integer _etalon = null;
	
	@Override
	public void setEtalon(Integer node) {
		_etalon=node;				
	}
	
	@Override
	public boolean check(ASTNode node) {
		if (_etalon==null)
			return false;
		if (_etalon==node.getNodeType())
			return true;
		return false;
	}
}